package com.fruit.mapper.refund;

import java.util.List;

import com.fruit.pojo.order.Order;
import com.fruit.pojo.refund.AfterSalesService;
import com.fruit.pojo.refund.AfterSalesServiceGoods;
import com.fruit.pojo.refund.AfterSalesServiceRefund;
import com.fruit.pojo.refund.Question;
import com.fruit.pojo.refund.RefundCodex;

public interface AfterSalesServiceMapper {

	
	int saveSalesService(AfterSalesService as); 
	
	int saveSalesServiceRefund(AfterSalesServiceRefund asr);
	
	int saveSalesServiceQuestion(Question q);
	
	int saveSalesServiceGoods(AfterSalesServiceGoods asg);
	
	RefundCodex getRefundCodexByState(RefundCodex rc);
	
	int updateOrderRefundState(Order o);
	
	AfterSalesService getSalesServiceByCode(AfterSalesService as);
	
	AfterSalesService getSalesServiceById(long id);
	
	List<AfterSalesServiceGoods> getAfterSalesServiceGoods(long afterSalesServiceId);
	
	AfterSalesServiceRefund getAfterSalesServiceRefund(long salesServiceId);
	
	List<Question> getAfterSalesServiceQuestion(Question q);
}
